<template>
  <div>
    <div class="topic-text">
      <h1>排行榜</h1>
    </div>
    <el-row>
      <el-col :span="3">
        <el-menu
            default-active="0"
            class="el-menu"
        >
          <el-menu-item class="el-menu-item" index="0">综合排行榜</el-menu-item>
          <el-menu-item class="el-menu-item" index="1">热议排行榜</el-menu-item>
          <el-menu-item class="el-menu-item" index="2">畅销排行榜</el-menu-item>
          <el-menu-item class="el-menu-item" index="3">飙升排行榜</el-menu-item>
          <el-menu-item class="el-menu-item" index="4">新书排行榜</el-menu-item>
        </el-menu>
      </el-col>
      <Comprehensive></Comprehensive>
    </el-row>

  </div>
</template>

<script>
import Comprehensive from "@/components/rank/Comprehensive";
export default {
  name: "RankListPage",
  components: {Comprehensive},
  data() {
    return {
      activeIndex: '0'
    }
  },
  methods: {
    toHome() {
      this.$router.push('/home')
    },
    toCategory() {
      this.$router.push('/category')
    },
    toRankList() {
      this.$router.push('/rankList')
    }
  }
}
</script>

<style scoped>
.topic-text {
  text-align: center;
  font-size: 14px;
  color: darkorange;
}
.el-menu {
  width: 200px;
  height: 100%;
  background-color: orange;
  border-right: 1px solid #ebeef5;
}

.el-menu-item {
  height: 140px;
  font-size: 20px;
  text-align: center  ;
  color: white;
}
.el-menu-item:hover {
  background-color: darkorange;
}
</style>